﻿using System;

public struct Token
{
    public string Value;
    public TokenType Type;
    public int Precedence;
    public bool IsLeftToRight;

    public Token(string value, TokenType type, int precedence = int.MinValue, bool isLeftToRight = true)
    {
        this.Value = value;
        this.Type = type;
        this.Precedence = precedence;
        this.IsLeftToRight = isLeftToRight;
    }
}